

setTimeout( ()=> console.log(1) , 0 );

new Promise( (resolve,reject)=> resolve() )
.then( () => console.log( 2 ) )
.catch( () => console.log( 3 ) )
.finally( () => console.log( 4 ) )

console.log( 5 );